import { BasicColumn, FormSchema } from '/@/components/Table';
// 列表页字段
export const columns = (): BasicColumn[] => {
  return [
    {
      title: '编码',
      dataIndex: 'code',
    },
    {
      title: '是否已使用',
      dataIndex: 'isUsed',
      customRender: ({ record }) => {
        if (record.isUsed) {
          return <span style={{ textAlign: 'center' }}>已使用</span>;
        } else {
          return <span style={{ textAlign: 'center' }}>未使用</span>;
        }
      },
    },
  ];
};
